﻿using System;
using System.Collections.Generic;

using mvcForum.AddOns.Controllers;
using mvcForum.Core.Interfaces;
using mvcForum.Core.Interfaces.AddOns;
using mvcForum.Web.Interfaces;
using mvcForum.Core.Interfaces.DependencyManagement;

namespace mvcForum.AddOns.StopForumSpam {

	public class StopForumSpamBuilder : IDependencyBuilder {

		public void Configure(IDependencyContainer container) {
			container.Register<IAntiSpamAddOn, StopForumSpamAddOn>();
			container.Register<IAddOnConfiguration<StopForumSpamAddOn>, StopForumSpamConfiguration>();
			container.Register<IAntiSpamConfigurationController, StopForumSpamConfigurationController>();

			container.Register<IInstallable, StopForumSpamInstall>();
		}

		public void ValidateRequirements(IList<ApplicationRequirement> feedback) { }
	}
}